package com.jic.market.mapper;

import java.lang.Long;
import java.math.BigDecimal;
import java.util.List;

import com.jic.market.entity.BargainLog;
import com.jic.market.request.rest.bargain.MyBargainRestRequest;
import com.jic.market.response.rest.bargain.BargainLogRestResponse;
import com.jic.market.response.rest.bargain.MyBargainRestResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 砍价记录表
 * @author : 
 * @email : 
 * @since : 2020-09-10 06:20:18
 * @version : v1.0.0
 */
@Mapper
public interface PromotionBargainLogMapper {

    long insert(BargainLog bargainLog);

    long delete(Long id);

    long update(BargainLog bargainLog);

    BargainLog queryByPrimaryKey(Long id);

    List<BargainLog> query(BargainLog bargainLog);

    List<BargainLog> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("bargainLog") BargainLog bargainLog);

    long queryPageCount(BargainLog bargainLog);

    BigDecimal bargainMoneyCount(BargainLog bargainLog);

    List<BargainLogRestResponse> listRestPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("bargainLog") BargainLog bargainLog);

    long listRestPageCount(BargainLog bargainLog);
}